#!/usr/bin/env python
# -*- coding:utf-8 -*-

from flask_restful import Api

from . import user_blueprint
from api.userResource.userResource import UserResource
from api.userResource.userOtherResource import UserOtherResource

api = Api(user_blueprint)

api.add_resource(UserResource, '/user/<UserID>', '/user', endpoint='user')

@user_blueprint.route("/register",methods=['POST'],endpoint="Register")
def register():
    return UserOtherResource.register()

@user_blueprint.route("/login", methods=['POST'],endpoint="Login")
def login():
    return UserOtherResource.login()
